<!-- cuerpo -->
<div id="yui-main">
    <div class="yui-b">
        <div class="yui-gc">
            <div class="yui-u first">
                <div class="ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix" style="padding:5px;">
                    <h1>Seleccione la sub-categoria</h1>
                </div>
                <div id="gbox_editgrid" class="ui-jqgrid ui-widget ui-widget-content ui-corner-all" dir="ltr" style="padding:5px;">
                    <?=$this->modelo_ec->vista_breadcrumb;?><br><br>
                    <div>
                        <table border="0">
                            <?php foreach ($consulta->result() as $row):?>
                                <?php //$query = $this->db->query("SELECT category_name FROM category WHERE category_id=".$row->category_child_id." ORDER BY category_name");
                                //$row2=$query->row();
                                ?>
                            <tr>
                                <td colspan="2" class="listado_categorias_cat2"><b>.</b>
                                        <?php if ($cantidad == 0): ?>
                                    <a class="listado_categorias_cat2" href="<?=base_url();?>index.php/ecommerce_empresa1/pedido2/<?=$row->category_child_id?>"><?=$row->category_name;?></a>
                                </td>
                                    <?php else: ?>
                            <a class="listado_categorias_cat2" href="<?=base_url();?>index.php/ecommerce_empresa1/pedido1/<?=$row->category_child_id?>"><?=$row->category_name;?></a>
                                    <?php
                                    echo '</td>';
                                endif; ?>
                            </tr>
                            <?php endforeach;?>
                        </table>
                    </div>
                </div>
            </div>
